Hello Fallout NV
Welcome to Apple Support Communities
To begin your computer is an Intel iMac not a G5, the last G5's were built in 2005 and will not run 10.6 Snow Leopard. I will ask the host to move your thread to the Intel iMac section of the Forum.
http://discussions.apple.com/category.jspa?categoryID=189
You do not say what brand of blank CDs you are currently using, so it's hard to recommend anything more than resetting the PRAM and trying another brand.
1. Reset the iMac's Pram, see >
http://support.apple.com/kb/HT1379
2. Try a different brand in a 5 or 10 pack.
Then if your Superdrive is still not working properly, you will need to contact Apple Support or your Apple Store and take the iMac in for service.
Dennis