All PowerShell Versions
Get-HotFix is a built-in cmdlet that returns the installed hotfixes. It has no parameter to filter on hotfix ID, though.
With a cmdlet filter, you can easily focus on the hotfixes you are after. This example returns only hotfixes with an ID that starts with "KB25":
Get-HotFix | Where-Object { $_.HotfixID -like 'KB25*' }
Note that Get-HotFix has a parameter -ComputerName, so assuming you have the appropriate permissions, you can retrieve hotfix information from a remote computer as well.