Programmatically check if a D8 version exists for all site modules I am listing all modules used by site on our platform. Given a module name, how could I programmatically check if a Drupal 8 version is available?
For non programmatical way. 

Download and install the Upgrade Status Module