Gift Of Discernment

What is the Gift of Discernment, and how to go about using it?  How do we pray as we discern the principalities that may be trying to rise up against ourselves personally, or the nations?