You can access different locations on the game map to see what units are present at those locations. Search for the “game map” in the python language documentation
This question was asked by a user and removed after they found the answer. I duplicated it in case anyone else had a similar question, a common occurrence within a competition season.