The title company does a public records search, which they base on the information you to fill out in a "statement of information". Additionally, you are required to disclose if you've been hit with a judgment. If the judgment doesn't appear on the public records search by title, and only is on your credit, there are a few loan programs that wouldn't require it to be paid. To get specific answers for your situation, you should speak to the lender who you've approved with.
Free Mortgage Advice & Pre-Approvals (FHA, VA, USDA, Fannie, Freddie, Non-Prime, Construction, Renovation/Rehab, Commercial) since 2002
Located in Southern California and lending in all 50 states