As far as i know you cant set the game to not show allied units inventory
maybe you can manipulate the player ally flags using triggers so that the game considers allies being enemies who share vision and cant attack each other
[edit] ok, that was crap , sorry ^^