O crap that is right you did say Imac Doh!
This is said to work though I can't test it as i have only lappies and towers.
http://forums.macrumors.com/showthread.php?t=456172 In this thread i found this quote:
As of 0.4.5 you can blank any display that you are not using XBMC on.
So, yes, you can blank the iMac screen while still watching the secondary display. And vice versa should you so desire.
http://xbmc.org/Another good possibility is switch rez x. Again i can't test it. You will have to put the haxie engine ape on your machine.
http://www.madrau.com/html/SRX/New.htmlEven if SwitchRez X doesn't have a direct path to what you want you could always make a display set that you know the iMac can't handle which should blank the built-in display while keeping output to your external. Be careful with this tool and always keep the test first and resume box ticked as this is a powerful tool.