Hi Sreeni,
You can use below Get application in Microsoft Graph to retrieve the application object. To find the expiration you need to examine PasswordCredentials and passwordCredential's EndDateTime property.
Get application
https://learn.microsoft.com/en-us/graph/api/application-get?view=graph-rest-1.0&tabs=http
passwordCredential resource type
application resource type
https://learn.microsoft.com/en-us/graph/api/resources/application?view=graph-rest-1.0
If the above was useful, please Accept Answer.
Thanks
-TP