Get Armature bone

ok how would i get the position of the end of an armature bone or the position of a bone in realtime

thanks