Don't mention divorce unless you're ready to use that stick if she doesn't pull her head out.
An important thing is to get her back in your bedroom so working on the relationship is key. If you use the D bomb then be prepared to do it. Don't use it as a threat. You simply explain either work on getting back into the bedroom and into the marriage or divorce. You'll work it out. Good Luck! Lycka Till!