You can use cuMemGetInfo. This is one of the few functions from the driver API that you can mix with the high-level API.
See my post in [url=“http://forums.nvidia.com/index.php?showtopic=60073”]http://forums.nvidia.com/index.php?showtopic=60073[/url] for an example.