Extract Parameters' formulas

See if this post can get you started: How to set 'Formula' for parameters in family

The OP is looking to set the formula value but the Get Formula method is shown and should be a similar process.