Not sure what your question really is. The name of the login is in the column sys.dm_exec_sessions.login_name.
But a more direct way is to run
ALTER DATABASE yourdb SET RESTRICTED_USER WITH ROLLBACK IMMEDIATE
This will kick out all non-admin users. You need this command at the end of the job:
ALTER DATABASE yourdb SET MULTI_USER
Then again, as Tom suggests, this nothing you do normally. Least of all because you "want to use the computer resources for the batch job." But some applications have nightly batches where bad things could happen if users area active in the system when the nightly batch runs. But this is something you typically solve in the application, one way or another.