Ummm...how would they know? They'd have to use a burette and show up willing to measure the displacement.
I think you would get away with it, EXCEPT when there has been a death or serious, life-limiting injury. Those are the sort of circumstances where an insurance company might be looking at million dollar payouts. In those circumstances you can be sure they will look really hard for reasons not to pay out. That might include getting engineers' reports on the vehicles involved: looking for inadequately maintained vehicles, illegally modified ones, etc. If found out, you could well be looking at bankruptcy (because you'll be liable for the compensation, not the insurance company), jail time, and a lifetime of gut-wrenching guilt.
In summary, you will almost certainly get away with it. But it isn't entirely risk-free, and especially if there has been a death your bike might be subject to some close scrutiny. Those vehicle engineers are not naive - they know to look for big-bore conversions, hot cams, etc.