That is why the green card you have is called a Temporary GC. You need to stay together to be able to get the permanent one. you had the temporary gc for 2 yrs now and as you say it is about to expire,so you can apply for the condition removal. And the good thing is that, you guys are still in good terms. You need to get approved for removal B4 getting a divorce.
Good luck!