Don't have Telegram yet? Try it now!
https://troubleshootingsql.com/2011/08/05/getting-the-default-data-and-log-path-using-powershell/
Getting the Default Data and Log path using PowerShell