To eject a disc, simply press the eject button on the disc drive itself. Pressing it will cause the drive to open and push the disc out.
If the button doesn't respond—say the system is frozen—many drives also have a small manual eject pinhole you can push a straightened paperclip into to release the disc by hand.