Stroke = the travel of the piston. You'll have to find TDC, top dead center of the up stroke then rotate the crankshaft until the piston is at BDC, bottom dead center. For our purposes you can simply eye ball it and measure from the top of the piston to the top of the cylinder at both TDC and BDC.
If you want to get very accurate you'll neen a dial indicator and check crankahaft rotation. That kind of accuracy is for full race engines. Not a little motorized bicycle 2 stroke.
The stroke can be measured through the spark plug hole but you'll get a better reading if you remove the cylinder head.
Hope this helps.
Tom