From a terminal, you can type "drutil eject".

I have seen cases where the CD could not be ejected until Parallels VM was shut down first or perhaps you can eject from Parallels Desktop.