get the custom taxonomy name?

You can check if term exists, see here

add_action( 'woocommerce_before_single_product', 'display_category_list',20 ); 

function display_category_list() {

  global $post;
  $term = 'term_name'; // Term name string or array
  $taxonomy = 'product_cat'; // your taxonomy

  if( has_term($term, $taxonomy, $post) ){ // if post belongs to term(s) 

     wc_get_template( 'woocommerce/single-product/single-product-top- 
       content.php' );
  }
}