Get display name from hook_preprocess_views_view
You can get the display ID through the current_display property of the View object, e.g.

$view = $vars['view'];
if ($view-&gt;name == 'foo' &amp;&amp; $view-&gt;current_display == 'bar') {
  // ...
}