Google's going after the Office cash cow right now. For low end users they have a compelling argument. High end users won't switch, but to threaten the revenue you just have to lose most people.
For another threat, the first video at http://37signals.com/svn/posts/2380-you-couldnt-pay-me-to-wo... points out that Steve Jobs thinks that the PC in its current form has a fairly limited time horizon until people switch away from it in large numbers. That would kill Microsoft's operating system margins. Watch the video to see how unprepared Steve Ballmer is to deal with this threat.
Don't literally read the 10 years; it basically translates into "The market thinks Google and Apple have extremely bright, shining futures." 4 years is also not necessarily literal; for one thing I doubt either individually or collectively people are saying that Microsoft won't exist in literally four years. What it means is that the market thinks they are OK now but are in for decline; combine decline with future discounting and they get a smaller future-earnings value.
You have to consider everything here through the prism of future discounting.
Future discounting is pretty fundamental. This is an interesting way to look at things when understood properly; there's nothing intrinsically wrong with collapsing statistics like this because it's the only way for human brains to get a grip on stuff like this. The full totality of detail is too much.
On the contrary, < 4 years for MSFT is potentially within the ability of the market to predict and more likely an indication that the market actually believes that MSFT on its current trajectory won't hack it.
A lot of people might agree that trends in open source software, distributing computing away from home PCs to cloud applications, and their inability to compete effectively for search or hardware makes their CURRENT business a dying one.
On the other hand, MSFT has smart people and money and I wouldn't doubt their ability to reinvent themselves and start competing in new markets.