An echocardiogram can detect heart conditions such as congenital heart disease, cardiomyopathy, valve disease, etc.