I don’t think generated houses have ID of the mapgen data on them.
The simplest way would be to get something like grep (there are many windows equivalent of grep too) and searching for “window”.
For example, calling grep like:
Showed that houses 10, 14, garage 4 and gardener have instances of non-domestic windows. Some of those may be intended.