There have been plugins for this for quite some time. Here are a couple of them:

Enhanced Media Library - https://wordpress.org/plugins/enhanced-media-library/

Media Tags - https://wordpress.org/plugins/media-tags/