Exchange Server does not support in place upgrades.
You'll want to take advantage of this opportunity to build a new server that is running a supported version of Windows Server, install Exchange Server 2013, create new mailbox databases, and then move your mailboxes to it.