(you can use the warhammer, but just to be clear, it’s not a “weapon specifically designed to be nonlethal” – you can tell based on whether it’s listed as having the “nonlethal” quality)
(also, yes, d20 to hit, Studied Target bonus applies in addition to your usual modifiers to attack)
3