An echocardiogram reveals the structure and shape of the heart. It works just like a sonogram. It is used to detect and diagnose structural heart conditions.