Before the 2004 lockout? They absolutely were. NHL 2Night, multiple games broadcast every week, playoff broadcasts, features on Sportcenter, etc.
The NHL had pretty good status at ESPN, due more so to the Northeastern-raised ESPN execs' affinity for the sport than to the NHL's ability to generate revenue for ESPN. But after the lockout that all changed. And it's no surprise that the NBA has seen a meteoric rise since then, while the NHL has maintained as a relatively-niche sport. ESPN's influence was pretty big, and the NHL suffered from losing it.
I'm not suggesting that the NHL would be anywhere near the NBA's current position if there hadn't been a lockout and ESPN had kept them, but I'm certain they'd be in a better position than they are now. It'll always be a niche sport that mainly appeals to the northern states and Canada, but ESPN's continued promotion would have increased its status.
I was mainly talking about the period after the second lockout, yeah. NHL playoffs wouldn't even be covered on sportscenter instead they'd spend half the show on the last regular season Basketball games. Got even worse when both were in playoffs.