Thank you for contacting Wizards of the Coast game support.
It is intended to be used on things like charms and compulsions and the like, but there are limitations. If you do not have the mental ability or control to perform the standard action required, then you are not able to use the maneuver. For instance, if you are Dominated and your enemy is forcing control over you, you cannot use the ability. If they give you free reign to use your own actions, but plan on exerting control over you if you anger them, that is enough for you to be able to use the standard action to initiate the Iron Heart Surge.
Take Care and Good Gaming! :)
So that seems pretty clear: If your character has the ability to use his/her will, they can surge out of spell effects, etc.