I could be wrong (I have no personal experience here), but my understanding is that the info you want is
not on the CD. Because of this, online databases of CD title/artist/track data have been set up; first the no-longer-free CDDB, and now
FreeDB. Using such a database, you can compute a sort of checksum for a disk and then look up the information from your software. Check out the FreeDB web site for technical info on using their database.