A scrotal ultrasound, also known as a groin ultrasound, is used to create images of the scrotum and its contents, including the testicles, epididymis, and surrounding tissues. The ultrasound can detect abnormalities, such as masses, cysts, or fluid accumulation, and evaluate blood flow to the area.