It is highly likely that you disturbed the data cable connection, probably on the motherboard when you reseated the graphics card, no doubt by accident.
Check on this and that the cables are firmly seated there AND into the optical drives.
Go into the BIOS and see if the drives are recognized now. If they are not seen in the BIOS they will not functional in WIndows, obviously.
Let us know.