To measure the distance of a planet, It is possible to measure the time of flight of a laser pulse.
And radius, I am not sure but having the distance and image of the planet, it is straight forward to calculate the radius of the planet.
After you know the distance, the radius is a simple geometric ratio, as z_ghadiani described.
The object must be big enough and close enough to appear as a disk, and not just a pinpoint.