Amount of video memory.

Is there a programmatic way to find out how much memory a video card has? And how much is currently used / available?

Not through OpenGL.

Thanks. I will post under Windows catagory.