Postgresql-12 replication status in recovery mode
You can ask primary server about replication status of standby server(s) by using pg_stat_replication which is a system statistics view.
You can use WAL Archiving to setup a replication instead of / in addition to streaming replication