Erectile dysfunction is common in diabetic patients and may be either due to vascular/neuropathic problem or hormonal dysfunction (what you are referring to andropause. Tests for andropause are serum LH, FSH and testosterone and semen analysis. For vascular cause you need doppler ultrasound of penile region and for neuropathic cause tests needed are clinical examination and nerve conduction tests.