How to decect a disc in a cd-rom

Hi,
How can I detect if there is a disc in a cd-rom driver ?
I use tp  ver. 7.

Thank You for your answer :-))

by Frengo

Fre...@iol.it ( Milan ITALY)