Can I customize the iPad 2 HDMI output or has it just a mirror function?
The answer is, it depends on the app that you are using.

Apps can choose to present different content on the external display if they want. For example Keynote can display the slides on the external display and the presenters notes on the built-in display.