If you divorce your spouse during the two year conditional resident status, you can still obtain your ten year green card. However, you have to show that the relationship is valid, or was valid, during your marriage. You would have to prove and that you shared a life together – photographs, rent receipts, bank accounts, health insurance cards, anything that shows that you actually had a relationship together. What I usually do in these cases is put together as much proof as possible. If you do that, you have a pretty high chance of obtaining your ten year green card but you will have another interview and I highly recommend that you contact an experienced immigration attorney to help you through that process.