Diphallia can sometimes be detected during prenatal ultrasound examinations, although it may not always be accurately diagnosed until birth. If suspected, additional diagnostic tests may be recommended to confirm the condition.