Why don't they just weigh the bikes? Website states the motor weigh's 1.8kg, that would be easy to detect surely? The component spec for the bikes of a race team are probably fairly fixed, so shouldn't be hard to figure out what a bike should weigh?
The UCI limits the minimum weight a bike must weigh. Carbon bikes and parts can get a bike well below that minimum weight, such that some racers have had to tape weights to the bike to get it up to weight when it didn't pass tech inspection.
Now what if instead of taping weights to the bike...
A weight minimum is enforced for these bikes, which isn't really close to the possible minimum. It would be trivial to swap different components out for lighter versions in order to accommodate a motor.