[CI] move env print to util, add pt, nccl versions
This PR:

- moves multiple python one liners to print pt env into a script - this is both faster and easier to maintain
- adds torch version 
- adds NCCL version (could remove if it's useless info, i just thought it might be useful in certain situations)

@LysandreJik 