Go to "Control Panel" and click "AutoPlay". Or go to "Start" and in the search box type "AutoPlay".
In the follow screen, scroll down and locate the option you want to change. Click on the button to the right of it and choose how you want to item to react.
When you are done, click the "Save" button on the bottom of the window and you are good.