One way to do that would be to right click on the commit in the tree that the branch is currently sitting on. In the context menu that pops up, you can select the branch name, and inside of the menu there's an entry for copying it to the clipboard. For example
master > Copy 'master'.
The same is also available in the "three dots" menu in the commit view when the currently selected commit has one or more branches.