You mean a physical object placed on bed and probe shape? You can do that with G30 command and move between positions with G0. Use start height higher than highest object part. And make sure that no other object would collide while testing - after all it is not made for this purpose.