I know one general had the idea of taking central Asia and Azerbaijan from Russia but that seems totally pie-in-the-sky to me. Did they really want any of their European territories back? I cannot for the life of me see how that would have been advantageous to them. So what were they hoping for in a best case scenario by joining the war?
Pan-Turkism was never anything close to the driving force behind the Ottoman entry into the war.
Insofar as the Ottomans had any war goals at all when the Empire entered the war, they were almost passive in nature. There was no particularly serious plan to seize Egypt, for instance. The main military forces were deployed on the Caucasus frontier, and even there Turkish goals seem to have been fairly limited, extending to maybe the reconquest of Kars if that. Most of the other war goals entertained at the time were either the product of a minority or wild imaginings independent of government entirely.
A lot of this is due to the nature of the way the Ottomans entered the war. It all started with the bombardment of the Russian Black Sea coast by the German fleet contingent at Constantinople at the behest of the German Admiral Souchon, with the connivance of only a small part of the oligarchic governing committee (Enver, Talaat, and
possibly Djemal although a lot of Djemal's actions seem kind of passive-aggressive with respect to the war, for instance withholding most of the funds necessary for mobilization). What internal debate there was over entering the war - and there was a considerable amount - focused on Turkey's relationship to the Great Powers: the capitulations issue, tariffs, and above all the foreign loans. A great part of the reason the Ottoman Empire entered the war was to shake those problems off.
During the war itself and as it evolved into a larger conflict, I am not sure that the Ottoman government spoke with one voice about war goals, if at all; the absolute most, in
territorial terms (having gained a measure of economic independence, which was probably the chief war goal insofar as they had any) might have been parts of the Caucasus, Egypt, and Iranian Azerbaijan (which they invaded, and in which Ottoman and British troops fought until nearly the end of the war). While many of these goals changed, especially with the Russian revolutions - the whole Army of Islam thing, for instance, spawning some pretty wild imaginings about Caucasian revision - I think that those territorial goals were the most the Ottoman government was ever going to seriously demand. Recovering the European empire was probably never considered all that strongly. One of the CUP's foreign policy planks by 1914 was in fact an alliance with Bulgaria against Russia and/or Greece.