DEFINITELY do that before you leave! In some instances and jurisdictions, leaving the marital home can be seen as "abandonment," and there can be serious consequences to that. Could be a big warning to you (not to leave), and also might be some opportunity/leverage for you (if wife does).
How is it that you haven't even seen an attorney yet???