You can't do much legally.
And that's the risk comes with all kabuli engines as you don't know the history of motor. But yes, there are some checks which you or your mechanic can do before finalizing the deal to get a rough idea about engine's health.
And i suggest you to replace engine oil after 3k kms