Heart murmurs are typically detected during a routine physical examination using a stethoscope. The healthcare provider listens to the baby's heart for any abnormal sounds. If a murmur is detected, further evaluation may be necessary to determine its cause.