IBM is preparing to reduce its workforce in the coming quarter, a move that could affect several thousand employees worldwide as the company continues its shift toward higher-margin technology areas.