Since the word "Power" is capitalised and "giftie" is not, I take it that the former refers to the Almighty, and the latter to the ability to see ourselves as others see us.

Understanding Robert Burns comments on that verse thus:

Finally, the poet asks us to consider ourselves - are we really all that we think we are. Would we stop making foolish comments about others if we understood just how they saw us?