Hi.
You can calculate Z0 and electrical length by open/short method which is described in microwave text.
Here get two input impedances,
(1) Zshort ; Port 2 is shortened
(2) Zopen ; Port 2 is opened
Then these impedances are expressed like following.
Zshort=Z0*tanh(theta)
Zopen=Z0*coth(theta)
theta=gamma*Length
Z0=sqrt(Zshort*Zopen)
theta=arctanh(Zshort/Zopen)
It is possible to make fomulus for Z0 using Sij, but using simulator is more easy.
Note : In actual measurement, Open conditions are realized by Lamda/4 length short extension attached to port 2.