You pass a law giving a class of inspector the right to enter premises where building works appear to be progressing. You strictly limit what they are permitted to observe and record and require recording of reasonable suspicion. Refusal to grant entry is itself an offence.
Approaches like this would work but are also a huge can of worms.