Get-VpnConnectionIPsecConfiguration is not a valid cmdlet on Windows; only Set-VpnConnectionIPsecConfiguration is provided for configuring IPsec parameters on a VPN connection.
To view or confirm the IPsec settings that were applied to a specific IKEv2/L2TP VPN connection, use Set-VpnConnectionIPsecConfiguration with the -RevertToDefault or explicit parameter values as a reference, but there is no supported PowerShell command in the provided documentation that reads back and displays the currently effective IPsec configuration from the Windows VPN client.
The documented usage is write-only, for example:
Set-VpnConnectionIPsecConfiguration -ConnectionName "YourVPNConnectionName" `
-AuthenticationTransformConstants SHA256128 `
-CipherTransformConstants AES128 `
-DHGroup Group14 `
-EncryptionMethod AES128 `
-IntegrityCheckMethod SHA256 `
-PfsGroup PFS2048 `
-Force
or to revert to defaults:
Set-VpnConnectionIPsecConfiguration -ConnectionName "YourVPNConnectionName" -RevertToDefault -Force
But there is no companion Get-* cmdlet in the VpnClient module to query and display those IPsec parameters.
References: