I honestly don't know!
I don't have a rifle in 17HRM, so I cannot guarantee that it will.
But basically, the 17HRM is a necked-down 22 mag so even if it doesn't work straight out of the envelope, I am pretty certain that with some minor tweaking it very well might.
I am 99,9% sure that it will lock in place in a 17HRM rifle since they both share the receiver, mag well and mag catch. (22 Magnum 1515/1516), but maybe someone on this forum can chip in with their knowledge about the issue.