<?php echo S2MEMBER_CURRENT_USER_LOGIN; ?>
This may output something like: johnsmith22
(or whatever their login/username is)

---- s2member Shortcode Equivalent ----

[s2Get constant="S2MEMBER_CURRENT_USER_LOGIN" /]