I suspect you could use the above KB to make the device read-only, yes.
In terms of can you block the device but still allow it to charge, thats actually dependent on the OS you are using. On Windows Vista and above, this should be possible, but not on Windows XP I'm afraid.