in reply to Checking if a CD is in a drive and it is blank?

Yes.

But then again given the correct command to run via system that's true for pretty much anything. Of course since you've given zero context as to platform and OS no one's going to be able to give you anything more than vague hints (possibly involving cdrecord for Linux and BSDen).