The services running application nodes can be find by fnd_nodes tables as mentioned in my previous blog about the FND_NODES table.
But Here I will explain how to determine the services running by checking the context file. Context file is a best place from which one can learn about the Apps.
We can check the following context file parameter from context file and determine the services which are running.


s_isDB
If parameter value is yes the Database is running on that particular node.
s_isAdmin
If parameter value is yes the Admin services running on that particular node.
s_isWeb
If parameter value is yes the Web services running on that particular node. like Apache ,HTTP
s_isForms
If parameter value is yes the Form services running on that particular node.
s_isConc
If parameter value is yes the Concurrent services running on that particular node.
s_isAdadmin
If parameter value is yes the APPL_TOP is used for Oracle Application.
s_isAdWeb
If parameter value is yes the APPL_TOP is used for Web services.
s_isAdForms
If parameter value is yes the APPL_TOP is used for Form Services.
s_isAdConc
If parameter value is yes the APPL_TOP is used for Concurrent Services.


Note:
The parameter s_isDB will be No if we are checking the on application node. And will be yes on the Database Node.

In the shared APPL_TOP architecture we can find all the parameters to be yes in all nodes except  s_isDB.

Example:
If we grep the parameters from Context file .

In Application Node 
grep s_is  TEST_test0123.xml

 Output:
         <TIER_DB oa_var="s_isDB">NO</TIER_DB>
         <TIER_ADMIN oa_var="s_isAdmin">YES</TIER_ADMIN>
         <TIER_WEB oa_var="s_isWeb">YES</TIER_WEB>
         <TIER_FORMS oa_var="s_isForms">YES</TIER_FORMS>
         <TIER_NODE oa_var="s_isConc">YES</TIER_NODE>
         <TIER_ADADMIN oa_var="s_isAdAdmin">YES</TIER_ADADMIN>
         <TIER_ADWEB oa_var="s_isAdWeb">YES</TIER_ADWEB>
         <TIER_ADFORMS oa_var="s_isAdForms">YES</TIER_ADFORMS>
         <TIER_ADNODE oa_var="s_isAdConc">YES</TIER_ADNODE>
 
In Database Node
grep s_is TEST_test0123.xml
  
  Output:
         <TIER_DB oa_var="s_isDB">YES</TIER_DB>
         <TIER_ADMIN oa_var="s_isAdmin">NO</TIER_ADMIN>
         <TIER_WEB oa_var="s_isWeb">NO</TIER_WEB>
         <TIER_FORMS oa_var="s_isForms">NO</TIER_FORMS>
         <TIER_NODE oa_var="s_isConc">NO</TIER_NODE>