I'm Lucy, and I'd be happy to answer your questions today.
If one of you has already filed for divorce, the best way to handle this may be to file a motion with the court and have the judge order your ex to grant you access. Then if he DOES call the police, you can show them a piece of paper saying that you're allowed entry. Note that you could also file a motion asking the judge to order him to vacate the premises, since you owned it prior to the marriage. You didn't forfeit the house when you left. It's still your house. He theoretically could try to argue that he has tenant's rights since you moved out so long ago, but a landlord is allowed entry with 24 hours notice, so that doesn't really help him, either.
Another option is to call the police, explain that you own the home, your husband is living in it, and he is refusing you access, and ask if they will go with you while you inspect the premises to avoid an altercation. A person can't be trespassing in their own home, but contacting police in advance could help avoid a messy scene if he calls them anyway and lies about what you're doing on the property.
If you have any questions or concerns about my response, please reply WITHOUT RATING. It's important that you are 100% satisfied with my courtesy and professionalism. Otherwise, please rate my service positively so I am paid for the time I spend answering questions. If you are on a mobile device, you may need to scroll to the right. There is no charge for follow-up questions. Thank you.