CD or DVD?

Solaris 8....

I have a script that burns data to CD/DVD. Is there a way in the script to check if the disk in the CD/DVD drive is a CD or DVD? I thought maybe there would be an option with 'cdrw' but it doesn't look like it from the man pages.

Thanks in advance!