Detect SDK Version in Datafield?

Is there a clever way to detect the SDK version the device is running? Maybe a try/catch or a "has" for a feature introduced in SDK 4.x, which sets a flag?

I need to generate a vertical font position offset for SDK 4 EDGE devices, which have a different behavior and are not positioned correctly in the simulator.

Thanks!