The trick isn't so much getting the old gas block off, it's getting the new one to stay on.
Set screws tend not to stay put; even Loctite won't hold well- that gas block sees some impressive heat. I'd probably recommend staking the things. Replacement gas blocks aren't pinned on; the taper pin hole locations are NOT standard from rifle to rifle; they're drilled individually at the time of assembly, so makers of replacement gas blocks can't take for granted that they'll be in a given spot (unlike, say, the holes for the fire control group pins).
Another thing to keep in mind is that some AR manufacturers don't parkerize under the FSB; I don't know if S&W does or not. If they don't, you'll either need some way to color match, a gas block that will cover the spot, or it's just going to look funky. If S&W does parkerize under the FSB, then never mind, you won't have a problem with the looks.