Accessing prefered angles of objects

Does any one know how to access and/or change the "preferred angle" of an object as found under the Hierarcy -> IK panel?

I wish to change the value on the fly to create a IK solution that be used to switch the bend angle of joint from forward to backwards depending on the state of the object.