Simply mark the content with your mouse and then copy the marked content.
Like this (screenshot taken from UniFi Demo Controller):
EDIT:
You can also customize the collums to only show the IP and Hostname. To do that click on the three little dots in the upper right corner.