I just need help with an old and big problem!

I need to know how to get informations about
a inserted CD in my cd-rom drive. I need to know what typ of cd-track (data or audio track) is used, i must detect the correct lenght of these tracks, etc. pp.

I also allready checked many source libraries, wrote to software companys which sell recording software, etc. but got no informations/help. I posted allready two times in here about this problem, but i got
no help, yet. PLEASE, HELP ME! (If you can!)