Measure your current driveshaft angle and length, then it's some trigonometry:
starting: old DS angle from ground (theta_1 - measure this with an angle finder as accurately as possible with XJ on level ground); DS length (hypotenuse); driveshaft drop distance from yoke to yoke (opposite - you will calculate this); driveshaft run distance along ground (adjacent - you will calculate this)
ending: new DS angle from ground (theta_2); DS length (same); driveshaft drop distance from yoke to yoke (opposite + lift amount, approximately); driveshaft run distance along ground (adjacent - calculated value from before minus about 1")
We've got theta_1 and hypotenuse, first calculate opposite_1 and adjacent_1:
opposite_1 = hypotenuse * sine(theta_1)
adjacent_1 = hypotenuse * cosine(theta_1)
Now that you have those comes the fun part...
opposite_2 = opposite_1 + lift amount (unknown we want)
adjacent_2 = adjacent_1 - 1"
hypotenuse remains unchanged.
theta_2 is different. We will need it to calculate opposite_2... So first we need to find that from the two knowns, hypotenuse and adjacent:
cosine(theta_2) = (adjacent_1 - 1") / hypotenuse, so:
theta_2 = arccosine((adjacent_1 - 1")/hypotenuse)
Now that we have that, opposite_1, and hypotenuse, we can calculate lift:
sine(theta_2) = opposite_2/hypotenuse
opposite_2 = hypotenuse * sine(theta_2)
lift = (hypotenuse * sine(theta_2)) - opposite_1
I'd combine this all into one big equation... but it'd be really mindbending.
EDIT: What I'd personally do is say "screw all that math", grab a pair of hydro jacks (or a jackstand and a hydro jack), measure the distance from the axle tube to the frame rail on each side, mark the slip yoke where it meets the transfer case seal with tape, then jack the XJ up by the frame till the slip yoke is an inch or so more exposed, then measure from the axle to the rail again and subtract. Pinion angle will screw around with it a little but it'll be pretty accurate.