Fetal echocardiography is a test performed while the baby is still in the womb. This is most often done during the second trimester of pregnancy. This is when a woman is between 18 and 24 years pregnant. This procedure is similar to ultrasound during pregnancy. You will lie down for the procedure.