If you jammed the drive, first try to shut down the computer.

Then turn it off by the button which is located on the rear panel of the system unit, wait a few seconds. Click on the button and start the computer.
Try to open the drive the normal way. Choose the folder "My computer" then "DVD RW drive(D)" and right click, find the line "remove" and click the left mouse button.

This method does not help in all cases, but only when the computer froze.
If the drive doesn't open willingly, try the forced method.

Take a toothpick or a needle. Look under the floppy drive hole. Insert the needle until it stops, should happen to click. Then it will open.
If the drive is never opened, then you can help you can only be a specialist.