Please give us your motherboard model.
When you first turn on computer, you can enter BIOS by pushing <F2> or <Del> key. Inside the BIOS, there should be a tab or section for "drives", "storage", or something of that sort. For each SATA connection on your motherboard, you should see what is connected to it, including your hard drive and your optical drive- others may show as "Empty". If you can see your optical drive model on the SATA connection list, then the BIOS has recognized the drive.
It should also list the control mode as either IDE or AHCI. If AHCI is not working, you might try IDE for the optical drive.