Hey guys, my cd drive isn't working. How can I make sure that this is due to the hardware, or software?

I can't load anything from my cd drive, it doesn't even show up on windows explorer.

Thanks,

Joe