This appears to be an issue of international family/divorce law with an intersect with immigration. It is unclear on what Visa you arrived here. Consult with an attorney experienced in immigration and family law. Even if you do get a divorce, there's no basis for you to stay in America and work under the facts presented.
What visa did you use to come into the US? The first step is to contact an immigration attorney to find out if you can fix your status after that the immigration attorney will be able to give you instructions on what to do regarding the divorce. All the best.
I agree with my colleagues. Contact a US immigration attorney to review your immigration options. Contact a divorce attorney to review your international divorce process.