First you’ve got to add a variable to your blueprint for a Texture2D (left hand menu as default - click the variable button). Assign your texture to that.
Then just pull the variable into your event graph and then you can call Rendering->Texture->GetSizeX to get the X size in pixels (or Y) as stated above.