The potential energy of a mass is given by the formula:

Where m is the mass, g is the gravity acceleration and h is the height.
Since the mass and gravity will be constant, for half the potential energy, we have:

So the box will have half the potential energy at half the height of the ramp.