A trip to the City is in order here, they should be able to tell you if there have been any builder defects or code violations recorded. Many Cities have this information available on their websites so start there.
Also, your agent should be able to pull a property profile for you via their Title Company of choice and that will tell you if there are any other liens out there that the Foreclosure did not wipe out.
You can also find out at the City who the builder of the home was and that might make your research easier.
And while having historical data about what might have occurred is nice, I am guessing that what you really want to know is if there is any skeleton hanging in this homes closet (figuratively speaking of course :-) that would come back to haunt you after you bought the home.
So, in addition to the legal background you are seeking I urge you to get a good, through home inspection of the property as well. If you are seriously considering this home it will be money well spent whether it turns up something that would cause you to put on the brakes or zoom full speed ahead.
Good luck with your transaction and have a wonderful day!
Tisza Major-Posner, Realtor, IVPG (909) 837-8922