There are many ways to create a building system and its tough to really know what the problem is without a visual. Is the Room a single mesh or constructed from parts? When you say “Holes” are you referring to Windows/Doors/Other pre-created Openings?
You could simply name the part or parts with names that you search specific substrings for and know if it has holes instantly. For example, a part is named 'WallSolid" search for substring “Solid” and you know that part does not have openings. A part named “WallWithHole” search for substring “Hole” and you know it does have one or more openings. If you don’t want to filter on the part name itself, then use tags.