I don't know how engines do it, but the basic concept is you can infiltrate to their side of the board on dark squares (whether that means putting a pawn, knight, queen, or etc). Then you use that post to attack surrounding weaknesses (of any color).
So yeah, looking at pawns is important. How many pawns can potentially control dark squares would probably be a good metric. Another big one is if you have a dark square bishop and they don't.
I am currently toying with CQL the chess query language program, trying to extract certain themes. I am having a hard time though defining of "control of the dark square". Just counting the number of dark squares and comparing it for each opponent is not enough. Because this can change in a second with exchanges or pawn moves. I tried queries where no future pawn moves are allowed, but that got me some games that didn't look like control of the dark squares.
Can some brilliant mind give me a definition?