How know the total memory on device?

I need to know the total memory on device with c#. It’s possible? can I do it to windows phone?

Thanks for your help

Have you heard about google?
http://docs.unity3d.com/Documentation/ScriptReference/SystemInfo.html
http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.info.devicestatus(v=vs.105).aspx