You could probably use the same method we use with knee orientation. Pole Vector constrain the IK handle to a locator.