There's no in-game detection of whether a faction is a player faction or not. From a game point of view, there's no difference (except for determining where later player factions can be added)
The third party sites tend to use various data sources of their own for this, which need to be manually updated as new factions appear - ROSS (ross.eddb.io) is probably the best one to start with.