Heya all ppl!!

Anyone here know how to check the status of the CD-ROM? I mean, like if there is a cd inside or if it's ejected...???

Ok, thanks a lot