Open Thunar and select "Edit -> Preferences" from the main menu. Next, click on the "Advanced" tab and then click on "Configure" under Volume Management. Select the "Multimedia" tab and then untick "Play audio CDs when inserted". You may, or may not want to do the same for DVDs. Most automounting settings can be configured through these screens.
Hope this helps