Instanton counting via affine Lie algebras II: From Whittaker vectors to the Seiberg-Witten prepotential