t-sql or powershell to return currently-configured snapshot folder for transactional replication SQL 2012
The snapshot folder is configured per Distributor.  The stored procedure sp_helpdistributor returns a column directory which is the snapshot folder for a specified distributor.