A good inspector will be able to give you a pretty good idea if the basement has flooded. Some states require that the seller disclose information like that if they know about it. But I revert back to an inspector with experience, they are your best option.