You can see the name of an opposing faction by typing /echo <t> while having them targeted
I guess that would not work if you cannot target them at all, but I think it would show up in the battle log too.