Undocumented remains of a 300-year-old complex of buildings have been discovered by chance during routine drainage work on a country house estate.