Access list of view modes available for nodes
View modes are config entities, so an entity query would do the trick:

$view_modes = Drupal::entityQuery('entity_view_mode')
  -&gt;condition('targetEntityType', 'node')
  -&gt;execute();