You may certainly have an Inspection done before you make an OFFER:
You would have to request this with the Seller, through his Agent.
I have seen these General Inspections run $300 to $500.
Do not expect the SELLER or the Bank to pay for this; and if it came out negative, and if you chose not to buy the house, do not expect to lay it off on them.
This is YOUR thing, and YOU are choosing to do it this unconventional way.
You will probably find that the Seller knows about the problems, and have prices the house accordingly.