1 verses of the Young's Literal Translation have both "how" and "learned".
John 7:15 and the Jews were wondering, saying, ‘How hath this one known letters--not having learned?'
In other translations: KJV WEB ASV Darby Webster DRC