Funnily enough you don't even need the mass of the object, assuming only gravity is acting.
A bit of manipulation with the basic laws of motion will give you the formula S = V^2/g where g is gravitational acceleration and S is the distance traveled from the original launch point. That only works for 45 degrees.
Draw the diagram for a projectile launched at 45 degrees and work your way from there. You need to find the maximum point (i.e. when it reaches peak height) for vertical displacement from the ground and then plug that in for horizontal displacement from the origin.