Dunno...
Altough you could try
formLeader... (formLeader unit)
"Formation leader for given unit, for dead units ObjNull. This is often the same as groupleader, but not always" - ComRef
The last sentence would suggest that this could perhaps maybe seem (vague enough
) with any luck return the leader of that user defined team...
But detecting who's in it... Dunno...