Here's how you can check the versions of various SAP components:
disp+work -V
tp -V
R3trans -V
R3load -v
# DB2-z/OS specific checkdb2radm -V
# Oracle specific checkbrconnect -V