first try resetting bios by clearing CMOS....
if the optical drive still don't detected...
Verify if the optical drive is still on good condition...
also check the power / data cables that attached to the optical drives....
and try to use different (sata) port in the motherboard for the optical drive....