I suppose what you are asking is, how do I get the Artist and Album name
from a CD? The short answer is that it's not contained on the CD, and what
you have to do is ask a database for that information (called a CDDB
database), using a value derived from the CD's tracks and lengths of tracks
as the ID to that database (which can return the track names as well).
There is a CDDB module available at CPAN, and there are many online CDDB
databases you can access (such as cddb.cddb.com and freedb.freedb.com).