Not that I know off...
But it shouldn't be hard to make.
Make your "CreateAI" function, without passing in a ObjectGroup of enemy ships.
Instead, in the same function, before creating the AI, create a ObjectGroup and add in it the name of ALL ships in the game. (for starbases, make sure there is at least 1 name, even if it is the name of the starbase itself. after creating and setting the AI for a ship you can remove the name of that group.
Only problem I can see with this is updating the ObjectGroup, when new ships enter, or others exit the game. I dunno if it needs to be done somehow, and if it does, I dunno how this update occurs for the regular ObjectGroups, the Friendly/Enemy/Neutral sides.