C doesn't know anything about a CD drive. Your computer knows about the CD drive, because it has a driver that handles it. C just passes the request along to the operating system, and the operating system passes it along to the driver.
That's why you can't use a device, until you have a driver for it.
You should be able to access any drive - hard drive, floppy drive, or cd drive - just by changing the letter of the drive, in your program.
You want to *definitely* use high level stream file functions, not low level non-stream, functions.
Remember that a floppy or CD drive, will have much slower access times, compared to a HD, so you may need to introduce a delay() or a very short sleep(). Just a second or two, should be enough, if it's needed at all.