Description: ISO 9660 is a international standard that defines a filesystem for CD/DVD media. To get the volume name from such system in Linux we ll be dealing with the its device path once again. On my system the device path of the CD/DVD device is /dev/scd0.
Also, it is important to know where is this information stored on the CD. Surfing and google-ing around I found the site that explains ISO 9660 in detail: types, modes, sectors etc.
Field of interest (called Volume ID) is located in the sector 16 called Primary Volume Descriptor on the 32808. byte of the CD, and its length is 32 bytes.
File list (Check if you may need any files):
read_cd_vol_info.cc