Is there any way to know the RAM of an Android phone?
You can use an app that tells you what hardware your device has. 

There are a lot of apps like this and here you have some examples: Antutu, Android Hardware Info, Quadrant.