You can check if GPS is enabled by this extension.
See these blocks and Project to see how to use this:
Especially the "ScanBT" and Block "AfterChosing"