How to include js library from /sites/all/libraries in twig template with attach_library?
There was likely a module that required the files in question to be added to the sites/all/libraries folder.  You could review that module on how it adds those files as libraries.  Check that module for a .libraries.yml file or check to see if the module implements hook_library_info_build().  Once you know the how to reference the library, you should be able to use the same reference in your twig template.

As an example, the Easychart module (https://www.drupal.org/project/easychart) has both a .libraries.yml and implements the hook in it's .module file.  To reference one of those libraries you would use "easychart/easychart.render" or "easychart/lib.highcharts"