While running a headless G5, accessible through vnc and ssh, I realized I didn't know how to open the cd drive. It took a little bit of digging, here's what you do:
To open the cd drive:
Open a Terminal window, and type this: "drutil tray open"
To close the cd drive, type this: "drutil tray close"