A farm near Richmond is on the market for £400,000, with planning permission to convert its barns into housing.