It's more useful to understand how SQL stored replication information. This is what I would use.
select *
from syssubscriptions ss with(nolock)
inner join sysarticles sa with(nolock) on sa.artid = ss.artid
inner join syspublications sp on sp.pubid = sa.pubid
inner join sys.servers sss with(nolock) on sss.server_id = ss.srvid
where sp.name = '' and
ss.srvname = ''