My G4 iBook CD/DVD drive died just four months after I purchased the Mac, so I have a little experience in this area...
Whatever you do, don't try to pry or force it out of the slot. The drive likely needs replacing, which Apple will do under warranty in just a couple of days. But if there is evidence of attempts to force the DVD out of the slot, the warranty is voided.