As a prospective buyer, you may request that the current owner pull the necessary permit(s) and schedule inspection of the existing construction prior to the Purchase & Sale agreement. If the work does not pass inspection, you may wish to discuss remediation of the construction prior to completing the Purchase & Sale agreement.
You may also accept the unpermited construction at your own risk.
BE AWARE: a home inspection is not the same thing as a building inspection.