The seller should provide the info if there is a disclosure required. Roofs are usually good for half of their life time -30 yr roofs good for 15 yrs or so. If there has been any hailing in the past, the roof is likely needed to be replaced. Check with a roofer to see their opinions. However, if the roof is slate, tile, metal, or wood material, they last longer than shingles.