I am tying to make a program that, among other things, checks that there is a cd recorder attached and then writes data to a cd.

does anyone have any idea about how i could do this??