Replication is a technology in SQL Server used for copying and distributing the data and database objects from one database to another and then synchronizing between databases to maintain consistency. There are different topologies used for replication. On an existing environment where replication is already configured, it is difficult to find the topology for a novice DBA.
During my recent engagements I came across a handy script which is written by Suhas De & Gaurav Mathur. They own the full rights for the script.
The script is available in the TechNet in the Microsoft website
https://gallery.technet.microsoft.com/Display-Replication-b15e730c#content