(Reuters) - Yahoo Inc is discussing a plan to slash its stakes in China's Alibaba Group and its Japanese affiliate as part of a complicated share transaction valued at roughly $17 billion, sources familiar with the matter said on Wednesday.