You can try calling legal aid to see if you qualify.
If your spouse was the sole breadwinner you can possibly see about charging them your legal fees, you would need to petition the couts fo that.
You do not necessarily need an attorney, many family courts offer low cost mediation. You and your spouse have to be in somewhat agreeance though. If you both want to battle it out then you will each need your own attorney's.