Schmidegg Kálmán gróf (1827–1855), kapitány a 3. Ferdinánd huszárezredben