how to find the name of the distributor server and publisher server from the subscriber server/subscriber database
Is there a way I can find the name of the publisher and distributor
  (server and database), from the subscriber?


For push subscriptions from the subscriber you can query MSsubscription_agents to get the publisher and publisher database.

For pull subscriptions from the subscriber you can query MSsubscription_properties to get the publisher and distributor.  Have a look at the columns publisher, publisher_db, and distributor.  The distribution database name will likely be distribution.