Heartworm disease is diagnosed through blood tests that detect the presence of heartworm antigen and/or microfilaria (baby worms) in the bloodstream. In some cases, imaging tests like X-rays or ultrasound may also be performed to evaluate the extent of the infection and assess the damage to the internal organs.