Yes, it is possible to save your M, but it won't happen overnight. It's good that you acknowledge what your role was in the demise of your marriage, but the question is, what are you going to do about it?
I know it's probably hard to work on your M while you are in afghanistan (Thank You for serving our country) Does the depression/anxiety stem from dealing with your deployment? Counseling is a good step, and I would encourage you to go regardless if your W does or not.
There are a lot of great people on this site that will be able to help you. Just jeep posting.
"Everyone you meet has baggage. Find someone who loves you enough to help you unpack." ¤Formerly DelinquentGurl¤