Nice animation!

The answer to the question is easy (assuming you know the position of the point p2). The points p1, p2 and m (at time of collision) form a right-angled triangle whose hypotenuse is the radius of the circle. So you can find the distance from p2 to m by Pythagoras' theorem.