brushless, brushed and stepper motors

ok so to control the speed of a brushless motor i would use an esc. but then if i connect this to an arduino and i wanted to constantly alternate the direction of the motor every 2 seconds, how can i do that? also how do i find out the amount of torque in a brushless motor?