Totally agree; when you target them it should show their faction alliance just like the NPCs.
The only way I've figured it out right now is to fly around watching what ships they are shooting or are shooting at them. Sucks because you have to waste time getting in close to them and watching a couple fights to figure it out.