Buying a home is a great idea ... a stable place to raise your child.
You will have to establish good credit first. And begin putting a little money
aside on a regular basis to cover closing costs when you are ready.
I believe Capitol One has a credit card that's great for beginners. Put in
$500 at the beginning of the month / use your card for a few small purchases,
then pay it off at the end of the month.
It's a good idea to speak with a lender or your bank about just how to go
about building credit. If you have met a Realtor you like, he/she can point
you toward some lenders.
Best of Luck,