I would start with a Send Atapi Packet function and test the function with commands like open cd draw, close cd draw etc.
Then move on to read TOC etc.
Heres a good starter link: http://www.geocities.com/siliconvalley/2072/atapi.htm
And if you must have C this will help
http://www.dex4u.com/etc/ie8086.c