You can use software called AirDisplay or Apple TV. There is a great new iPhone app that lets you mirror your device on a secondary display, and one of the best features of this app is that it can be controlled by the controlling machine. If you have an Apple TV, then just set it up to share your same iTunes library with your computer, so they both have access to the media stored within.