How to get the list of languages provided by a plugin

I have to use this PHP function to get the list of files contained in the language directory of the plugin :

scandir($plg_dir."/language");