It's important to note that while Sherman was a prominent figure in the Civil War, there is no evidence he had a horse named Duke, or any horse that was particularly famous or documented.
It's possible this is a fictional detail from a book or movie, or a misremembered anecdote.