You'll get taught the technique during training at Monteriggioni, roughly around the third or fourth memory sequence. Until then, disarming simply isn't available to you.
Once you have it, timing does all the work. Stay unarmed and hold RT — the right trigger, on the back of the controller — then press X the instant your opponent commits to an attack. Catch it right and you take their weapon; miss, and you eat the hit.
It takes a fair bit of practice to get the window down. Fighting the same enemy type a few times in a row helps more than anything.