Query texture memory

How do i find out a card’s texture memory from inside a program. Also, is there a way to know exactly how much of it i’m using?

Nope, not with OpenGL.

I believe you can play a trick to estimate texture mem:
Upload dummy textures and check if the last uploaded texture is resident
Hope this helps.