Search / querying package version information

Greetings Pro's,

Im trying to get the information of SQL server version which is installed in our infrastructure both linux and windows , Can any one please guide me in getting this info , below is the screenshot attached.

image

THANKS
pRASH