An easy way to do this in Mountain Lion is to hold down the option key and click on the speaker icon in the menu bar. You then get a list of possible outputs, and will be able to send all audio to your Apple TV or other AirPlay device by selecting it.