Your drives only require the basic Windows CDROM driver.
Try Removing your (D?) drive first in Device Manager and letting Windows Add New Hardware after a reboot - repeat for (E?) drive.
If this doesn't work, look in Device Manager in Safe Mode. Should they be listed as expected, then the cause is mostly likely loose/incorrectly fitted leads or cables. The secondary IDE cable, for instance, may have become detached or incorrectly fitted at the motherboard.
If you have XP, then keying in Drive letters into the Help and Support index will outline how to change them if necessary.