Many of us here can give you the guidelines for the loan programs, but none of us know YOUR unique situation. When you're ready to get serious about buying a home, make sure to reach out to a good Realtor and loan officer in your area (and use this message board to find a good one...) and have them help you with determining your pre-approval characteristics.
It's very hard for the layperson to "do it yourself" in this lending economy. Even if the guidelines say it's 3 years before you can get a loan, there can be circumstances that permit/require it to be earlier or later. And only someone with knowledge of your situation can appropriately guide you to where you want to go.