Go to Start > Run. Type in regedit and hit enter.

In the registry editor navigate to

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom.

In the right hand pane double click "AutoRun" and replace the value data from 1 to 0.

You may need to reboot for the changes to take effect.