Why?
I mean, if the user wants to select a different unit to check the hp / armor / speed of a different unit, why shouldn't they be able to?
You can check when a unit is selected and then select the hero for the player, like how they do in the "The Black Sheep", a Blizzard map that was included in RoC.