Can you refinance a home in an irrevocable trust?

You need to discuss that with your lender. Some lenders are reluctant to finance real property owned by a trust.

It is permissible according to Fannie Mae underwriting guidelines.