If you measure the inside diameter of the thread you should be able to work backwards to find the size, M18x1.0 will measure just under 17mm, M18x1.5 will measure just under 16.5mm.
It's a rule of thumb that was used lots when I was still working as a toolmaker & works as a general rule