Not sure why the UCI doesn't use scales to check the motors. Either the rear wheel or the frameset will be heavier if someone uses a motor.
If you see a strange weight, just disassmble the bike.
Plus you always have teammates bikes as reference and i doubt there's a whole team riding around...