Measure barrel wall thickness in several different places, take the average, multiply by 2, and subtract from the barrel diameter?
I'm not a gunsmith, but wouldn't that involve drilling holes into the side of the barrel?
"Several different places..." ...around the muzzle. dink.
Certainly a set of pin gauges could be used, if you wanted to spend a lot of money to check bore diameter.