You’ll need to get that information from the S corporation that you’re a shareholder of. They’re supposed to provide you with a statement with this information.
According to the Instructions for Form CT-34-SH New York S Corporation Shareholders' Information Schedule Tax Year 20...:
The S corporation must provide to each shareholder a statement indicating the shareholder’s pro rata share of the following items: