Ok this may be a good sign
What we need to do now is check out the CD drive to see if we can get it working again, you can also check the network card and Ram + clean any heat trapping dust inside the case, see the guide below for this but can you first check in the BIOS to see if the CD drive is detected, it may look like the .jpeg below;
If the computer needs cleaning out, first remove the power cord from the wall and open up the case, take anti static precautions before touching anything inside, you can do this by touching a bare metal part of the case, remove the video card, blow out the slot and re-seat the card securely, do the same with the memory sticks, clean all internal fans, if you use canned compressed air do not let any fan spin freely this can damage them, use something like a clean lollipop stick to hold the fan. Make sure If all internal connections are secure and that there are no loose components, re-assemble the computer, boot up and see how it goes.
Just a cautionary note, if you do use canned compressed air do not upend the can as it is possible for fluid to be emitted.