inner width of the wheel is usually the outside width subtracted by 5mm
but the other thing to worry about is tire clearance.
if you go from a 23mm to a 35mm tire, it will be 6mm wider and 12mm taller.
does your fork and frame have more than 20mm of space with the 23mm tires?