Tushar,
Do you really need a standalone custom desktop? I believe creating custom Finesse gadgets is a nicer way to go than having a custom standalone desktop.
But to answer your question, the answer is yes this is possible and the standard Finesse Desktop handles this.
As with all of these types of queries - have a look how the standard finesse desktop handles it.
Use F12 on your browser and look at the networks tab.
Specifically for this - it uses the following API Call (where 5551001 is the agent ID).
https://ucce-finesse-a.mydomain.com/finesse/api/User/5551001?nocache=1656530939030
Regards,
Gerry
P.S. Don't forget to test failover if the Primary Finesse Server fails.
The standard desktop handles this and its also detailed in the API guide.