You should hire a structural engineer if you have reason to suspect foundation damage. A home inspector is a general type of inspector who will recommend that you hire a structural engineer if they spot signs of foundation problems.