In order to determine how sharp a new lens is before purchasing or to compare the sharpness of different lenses, you can use an MTF (Modulation Transfer Function) chart provided by lens manufacturers. Here is how to read an MTF chart.
Note, this is a full explanation, a shorter version was published in the Northumberland Photography Club March Newsletter.