how to check if my program is run from cdrom or not?

because I want to run my program only from the cdrom.

??