Hi Sheetal,
You haven't given much detail about what you are trying to do and why, so i'll ask some questions that will help us find you a solution:
1) Can you just install robot framework and the required libraries on machine B and just run your tests there? this is usually the easiest solution, but there may be a valid reason you can't?
2) Ignore automation for a moment if you are manually testing the desktop application on machine B from machine A, how do you access machine B from machine A? is it RDP, Citrix, Team Viewer, VNC, something else?
Assuming that option 1 is not possible and you are using one of the remote desktop viewing programs I mentioned, your best option is probably the SikuliLibrary (
https://github.com/rainmanwy/robotframework-SikuliLibrary), which is something I normally recommend as a last resort because it has so many limitations, really option 1 is your best option as it will be much easier for you.
Dave.