If you meet the residency requirements for divorce in whatever state you're talking about, you can divorce in that state.
Which as I told you in your other thread, may not divorce you in your home country. Further, the divorce will document your overstay and when you marry the US citizen, cause your attempt to get citizenship to blow up.